import request from '../utils/request'

// 获取文档详情
export const getDocument = (id) => {
  return request({
    url: `/documents/${id}`,
    method: 'get'
  })
}

// 锁定文档
export const lockDocument = (id) => {
  return request({
    url: `/documents/${id}/lock`,
    method: 'post'
  })
}

// 更新文档
export const updateDocument = (id, data) => {
  return request({
    url: `/documents/${id}`,
    method: 'put',
    data
  })
} 